package com.huike.business.service.impl;


import com.huike.business.domain.TbBusinessTrackRecord;
import com.huike.business.mapper.TbBusinessTrackRecordMapper;
import com.huike.business.service.ITbBusinessTrackRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 商机跟进记录相关操作的业务层
*/
@Service
public class TbBusinessTrackRecordServiceImpl implements ITbBusinessTrackRecordService {


    @Autowired(required = false)
    private TbBusinessTrackRecordMapper businessTrackRecordMapper;


    /**
     * 查询某条商机的全部跟进记录
     *
     * @param businessId
     */
    @Override
    public TbBusinessTrackRecord[] allBusinessTrackRecordService(Long businessId) {
        TbBusinessTrackRecord[] records = businessTrackRecordMapper.selectAllBusinessTrackRecordService(businessId);
        return records;
    }
}
